package com.lant.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloController {

    @RequestMapping("/hello")
    @ResponseBody
    public String hello() {
        return "66666";
    }

    @RequestMapping("/hello2")
    public ModelAndView hello2() {
        return new ModelAndView("index.html");
    }
    
    @RequestMapping("/hello3")
    public ModelAndView hello3() {
        return new ModelAndView("index");
    }
}
